//
//  IAAInfoMsgModel.m
//  iPadAuditAuthorise
//
//  Created by XiangDongMBP on 16/9/5.
//  Copyright © 2016年 XiangDong. All rights reserved.
//

#import "IAAInfoMsgModel.h"

@implementation IAAInfoMsgDetailItem
+ (NSDictionary<NSString *,id> *)modelCustomPropertyMapper {
    return @{@"recordId" : @"id"};
}
@end

@implementation IAAInfoMsgItem
+ (NSDictionary<NSString *,id> *)modelContainerPropertyGenericClass {
    return @{@"detailList" : [IAAInfoMsgDetailItem class]};
}
+ (NSDictionary<NSString *,id> *)modelCustomPropertyMapper {
    return @{@"count" : @[@"totalCount", @"count"]};
}
@end

@implementation IAAInfoMsgModel
+ (NSDictionary<NSString *,id> *)modelContainerPropertyGenericClass {
    return @{@"infoMsgList" : [IAAInfoMsgItem class]};
}

- (void)addMoreData:(IAAInfoMsgItem *)item {
    for (IAAInfoMsgItem *ori in self.infoMsgList) {
        if ([ori.infoType isEqualToString:item.infoType]) {
            ori.count = item.count;
            [ori.detailList addObjectsFromArray:item.detailList];
            return;
        }
    }
}

@end



@implementation IAAMarketNProItem
@end
@implementation IAAMarketHProItem
@end
@implementation IAAMarketAssetItem
@end
@implementation IAAMarketCustomerInfo
@end
@implementation IAAMarketDetailModel
+ (NSDictionary<NSString *,id> *)modelContainerPropertyGenericClass {
    return @{@"asst"      : [IAAMarketAssetItem class],
             @"nproducts" : [IAAMarketNProItem class],
             @"hproducts" : [IAAMarketHProItem class]};
}
@end



@implementation IAARiskMonitorInfoItem
@end
@implementation IAARiskMonitorModel
+ (NSDictionary<NSString *,id> *)modelContainerPropertyGenericClass {
    return @{@"infolist" : [IAARiskMonitorInfoItem class]};
}
@end



@implementation IAAInfoMsgPromptModel

@end
